
#import <Foundation/Foundation.h>
#import "Downloader.h"


#define	kKeyRequestAPIServerURLPath			@"RequestServerURLPathKey"	
#define	kKeyRequestAPIHTMLBody				@"RequestHTMLBodyKey"		
#define	kKeyRequestAPIHTTPMethod			@"RequestHTTPMethodKey"		
#define	kRequestAPIMethodGET				@"GET"
#define	kRequestAPIMethodPOST				@"POST"


@interface libRequestAPI : NSObject<DownloadProtocol> {
	Downloader*			m_Downloader;		
	NSData*				m_Data;
	id					m_Delegate;
}

@property	(nonatomic, assign, getter=delegate, setter=setDelegate)	id	m_Delegate;

- (id)initWith:(id)delegate;
- (BOOL)requestWith:(NSDictionary*)infodic;
- (void)requestCancel;
- (BOOL)isExec;

@end


@protocol LibRequestAPIProtocol

- (void) libRequestAPIDownloadFinish:(NSData*)data fileName:(NSString*)file_name;
- (void) libRequestAPIDownloadError:(NSString*)url_path;
- (void) libRequestAPIDownloadCancel;

@end

